2a460d247d7e2ed231fff2a124fa700dbc12c4c2,com.vainolo.phd.opp.interpreter.tests/src/com/vainolo/phd/opp/interpreter/builtin/OPPReadJSONObjectProcessInstanceTest.java,OPPReadJSONObjectProcessInstanceTest,test_execute_complexInstance,#,62
Before Change
@Test
public void test_execute_complexInstance() throws Exception {
OPPObjectInstance instance = readJson("{\"a\":{\"b\":true}}");
assertEquals("true", instance.getPart("a").getPart("b").getStringValue());
instance = readJson("{\"a\":{\"b\":true, \"c\":3,\"d\":\"hello\"}, \"b\":false}");
After Change
@Test
public void test_execute_complexInstance() throws Exception {
OPPComplexObjectInstance instance = (OPPComplexObjectInstance) readJson("{\"a\":{\"b\":true}}");
assertEquals("true", ((OPPComplexObjectInstance) instance.getPart("a")).getPart("b").getStringValue());
instance = (OPPComplexObjectInstance) readJson("{\"a\":{\"b\":true, \"c\":3,\"d\":\"hello\"}, \"b\":false}");